<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="p"%>
<%
	String path = request.getContextPath();
	String root = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
	request.setAttribute("root", root);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<title>MochaUI - A Web Applications User Interface Library</title>
<meta name="description" content="A web applications user interface library built on the Mootools javascript framework" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" href="${root}/static/themes/default/css/Content.css" />
<link rel="stylesheet" type="text/css" href="${root}/static/themes/default/css/Core.css" />
<link rel="stylesheet" type="text/css" href="${root}/static/themes/default/css/Layout.css" />
<link rel="stylesheet" type="text/css" href="${root}/static/themes/default/css/Dock.css" />
<link rel="stylesheet" type="text/css" href="${root}/static/themes/default/css/Tabs.css" />
<link rel="stylesheet" type="text/css" href="${root}/static/themes/default/css/Window.css" />
<script type="text/javascript" src="${root}/static/scripts/mootools-1.2.4-core-yc.js"></script>
<script type="text/javascript" src="${root}/static/scripts/mootools-1.2.4-more-yc.js"></script>
<script type="text/javascript" src="${root}/static/scripts/mocha.js"></script>
<script type="text/javascript" src="${root}/static/scripts/demo-virtual-desktop-init.js"></script>
<script type="text/javascript" src="${root}/static/plugins/tree/scripts/tree.js"></script>
<script type="text/javascript" src="${root}/static/wdate/WdatePicker.js"></script>
<style>
<!--
.t_lable { text-align: right; padding-right: 5px }
table { min-width: 1030px }
table tr { height: 30px }
table tr td { padding-left: 5px }
.required { color: red; font-weight: bold; margin-left: 3px; }
-->
</style>
</head>
<body>
<s:form id="company" action="company/save.action" method="post" theme="simple">
  <table width="100%" border="1">
    <tr>
      <td colspan="8" align="left" style="padding-right: 10px;height: 40px">添加单位</td>
    </tr>
    <tr>
      <td class="t_lable">单位名称</td>
      <td colspan="5"><input type="text" name="company.name" value="北京天羽隆华贸易有限公司" class="input" style="width: 96%"/>
        <span class="required">*</span></td>
      <td class="t_lable">注册号</td>
      <td><input type="text" value="110115010191714" class="input" name="company.orgCode" size="27"/>
        <span class="required">*</span></td>
    </tr>
    <tr>
      <td class="t_lable">法人</td>
      <td><input type="text" class="input" name="company.legalRepresentative" value="张建泽" size="27"/></td>
      <td class="t_lable">公司电话</td>
      <td><input type="text" class="input" value="15254478525" size="27" name="company.tel"/></td>
      <td class="t_lable">年检情况</td>
      <td><input type="text" class="input" size="27" value="通过" name="company.annual"/></td>
      <td class="t_lable">公司规模</td>
      <td><input type="text" class="input" size="27" name="company.scale" value="> 100人"/></td>
    </tr>
    <tr>
      <td class="t_lable">公司成立时间</td>
      <td><input type="text" class="input" name="company.establishmentDate" size="27" value="2000-10-12"/></td>
      <td class="t_lable">注册地址</td>
      <td><input type="text" class="input" name="company.registeredAddress" size="27" value="北京市海頂区"/></td>
      <td class="t_lable">办公地址</td>
      <td><input type="text" class="input" value="北京市大兴区黄村镇清澄名苑北区２７号楼３单元１５０５室" name="company.officeAddress" size="27"/></td>
      <td class="t_lable">注册资金</td>
      <td><input type="text" class="input" value="110万(人民币)" name="company.registeredCapital" size="27"/></td>
    </tr>
    <tr>
      <td class="t_lable">经营范围</td>
      <td><input type="text" class="input" size="27" name="company.businessScope" value="IT, 电脑维修等"/></td>
      <td class="t_lable">发证日期</td>
      <td><input type="text" class="input" size="27" name="company.licenceDate" readonly="readonly" value="2001-10-12" onclick="WdatePicker();"/></td>
      <td class="t_lable">客户地址</td>
      <td colspan="3"><input type="text" class="input" size="27" value="杭州市西湖区"/></td>
    </tr>
    <tr>
      <td class="t_lable">有效期开始时间</td>
      <td><input type="text" class="input" size="27" name="company.validStartTime" readonly="readonly" value="2001-10-12" onclick="WdatePicker();"/></td>
      <td class="t_lable">有效期终止时间</td>
      <td><input type="text" class="input" size="27" name="company.validEndTime" readonly="readonly" value="2021-10-12" onclick="WdatePicker();"/></td>
      <td class="t_lable">营业期限开始日期</td>
      <td><input type="text" class="input" size="27" name="company.businessStartDate" readonly="readonly" value="2001-10-12" onclick="WdatePicker();"/></td>
      <td class="t_lable">营业期限终止日期</td>
      <td><input type="text" class="input" size="27" name="company.businessEndDate" readonly="readonly" value="2021-10-12" onclick="WdatePicker();"/></td>
    </tr>
    <tr>
      <td class="t_lable" valign="top">客户简介</td>
      <td colspan="7"><textarea style="width: 99%;height: 50px" name="company.summary">是一家大规模公司</textarea>
      </td>
    </tr>
    <tr>
      <td colspan="8" align="left" style="padding-right: 10px;height: 40px">添加合同</td>
    </tr>
    <tr>
      <td class="t_lable">合同名称</td>
      <td colspan="5"><input type="text" value="卖身合同" class="input" style="width: 96%" name="agreement.name" />
        <span class="required">*</span></td>
      <td class="t_lable">合同类别</td>
      <td><s:select list="#request.agreement_category" listKey="id" listValue="key" cssClass="select" name="agreement.category" /></td>
    </tr>
    <tr>
      <td class="t_lable">其它费</td>
      <td><input type="text" class="input" size="27" name="agreement.otherFee" value="500"/></td>
      <td class="t_lable">合同开始时间</td>
      <td><input type="text" class="input" size="27" readonly="readonly" onclick="WdatePicker();" value="2001-10-12" name="agreement.startDate" /></td>
      <td class="t_lable">合同终止时间</td>
      <td><input type="text" class="input" size="27" readonly="readonly" onclick="WdatePicker();" value="2021-10-12" name="agreement.endDate" /></td>
      <td class="t_lable">合同状态</td>
      <td><s:select list="#request.agreement_state" listKey="id" listValue="key" cssClass="select" name="agreement.state" /></td>
    </tr>
    <tr>
      <td class="t_lable">开户行</td>
      <td><s:select list="#request.banks" listKey="id" listValue="key" cssClass="select" name="agreement.bankName" /></td>
      <td class="t_lable">帐号</td>
      <td><input type="text" class="input" size="27" name="agreement.bankAccount" value="73894230482347"/></td>
      <td class="t_lable">是否已经审批</td>
      <td><input type="text" class="input" size="27" name="agreement.assess" value="已审批"/></td>
      <td class="t_lable">工资模板</td>
      <td><s:select list="#request.tpl" listKey="id" listValue="name" cssClass="select" name="agreement.salaryTemplate" /></td>
    </tr>
    <tr>
      <td class="t_lable">工会费</td>
      <td><input type="text" class="input" size="27" name="agreement.unionFee" value="20"/></td>
      <td class="t_lable">工会费方式</td>
      <td><s:select list="#request.unionPay" name="agreement.unionFeeWay"  listKey="id" listValue="key" cssClass="select"/></td>
      <td class="t_lable">服务费</td>
      <td><input type="text" class="input" size="27" name="agreement.serviceFee" value="100"/></td>
      <td class="t_lable">服务费方式</td>
      <td><s:select list="#request.serverPay" name="agreement.serviceFeeWay"  listKey="id" listValue="key" cssClass="select"/></td>
    </tr>
    <tr>
      <td class="t_lable" valign="top">合同备注</td>
      <td colspan="7"><textarea style="width: 99%;height: 50px" name="agreement.summary" >合作非常诸弟号寒诸妹瘦</textarea>
      </td>
    </tr>
    <tr>
      <td colspan="8" align="right" style="padding-right: 10px;height: 50px"><input type="reset" class="button" value="  清 空  "/>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <s:submit cssClass="button" value="  保 存  "/></td>
    </tr>
  </table>
</s:form>
</body>
</html>
